{include file="../template/header.html" /}
<div class="my-3 my-md-5">
    <div class="container">
        <div class="row row-cards">
            <div class="col-lg-12">
                <div class="card">
                    <table class="table card-table table-vcenter">
                        <tr>
                            <th></th>
                            <th>客户姓名</th>
                            <th>联系方式</th>
                            <th>医生姓名</th>
                            <th>预约门店</th>
                            <th>客户诉求</th>
                            <th>预约时间</th>
                            <th>操作</th>
                        </tr>
                        {volist name="arr" id="data" key="i"}
                            <tr>
                                <td>{$data.appo_id}</td>
                                <td>{$data.c_name}</td>
                                <td>{$data.tel}</td>
                                <td>{$data.d_name}</td>
                                <td>{$data.md_name}</td>
                                <th>{$data.ask}</th>
                                <th>{$data.time}</th>
                                <th>
                                	{if $data.state==0}
                                	<a class="btn btn-sm btn-primary" href="/Appo/Do/id/{$data.appo_id}">就诊</a>
                                	{else}
                                	<a class="btn btn-sm btn-disable" href="javascript:;">已就诊</a>
                                	{/if}
                                	<a class="btn btn-sm btn-warning" href="/Appo/Del/id/{$data.appo_id}">删除</a>
                                </th>
                            </tr>
                        {/volist}
                        
                    </table>
                </div>
                <div class="col-lg8 mx-auto">
                	TIPS:为了节约服务器资源，请自行删除已就诊的预约信息
                </div>

            </div>
        </div>
    </div>
</div>
{include file="../template/footer.html" /}